Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add dynamic Ollama model selection dropdown #154

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

kevin-on
Copy link
Collaborator

@kevin-on kevin-on commented Dec 1, 2024

  • Replace text input for Ollama model with dropdown populated from API
  • Add automatic model list fetching when base URL changes
Screen.Recording.2024-12-01.at.4.13.44.PM.mov

- Replace text input for Ollama model with dropdown populated from API
- Add automatic model list fetching when base URL changes
@kevin-on kevin-on linked an issue Dec 1, 2024 that may be closed by this pull request
Comment on lines 216 to 219
const updateModelOptions = async (
baseUrl: string,
dropdown: DropdownComponent,
) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this function to a private method of this class to improve readability.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to private method

@kevin-on kevin-on merged commit 160377c into main Dec 2, 2024
1 check passed
@kevin-on kevin-on deleted the feat/ollama-model-dropdown branch December 2, 2024 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FR: Auto-Detect Local Models
2 participants